<!-- 我的 -->
<template>
	<view class="page-index">
		<view class="bg-box">
			<image src="/static/user/mybj.jpg" class="bjImage"></image>
			<view class="userInfo" @click="datumhbnt">
				<image :src="userInfo.head || '/static/user/head-pimg.png'" mode=""></image>
				<view class="name">
					<view class="">
						{{userInfo.name || '请登录'}}
					</view>
					<view class="text" v-if=" Type == 0">
						<text>剩余查看需求数 : {{lookNum}}次</text>
					</view>
					<!-- #ifdef APP-PLUS -->
					<view class="text" v-if=" Type == 1">
						<text>剩余查看接单数 : {{lookNum}}次</text>
					</view>
					 <!-- #endif -->
					<view class="text" v-if="dqTiem && userInfo.ph_company_vip !=0 && Type == 1 ">
						会员到期时间: {{dqTiem}}
					</view>
				</view>
			</view>
			<!-- 接单端 -->
			<view class="information-box" v-if="Type==0">
				<view class="information" v-for="(item,index) in data0List" :key="index" @click="dataListBnt(item)">
					<view class="value">
						{{item.value}}
					</view>
					<view class="name">
						{{item.name}}
					</view>
				</view>
			</view>
			<!-- 接单端 -->
			<view class="card-box" v-if="Type==0">
				<view class="card-item" v-for="(item,index) in card0List" :key="index" @click="jumpCard(item)">
					<view class="left-item">
						<view class="title">
							{{item.title}}
						</view>
						<view class="value">
							{{item.value}}
						</view>
					</view>
					<image :src="item.image" mode="heightFix"></image>
				</view>
			</view>
			<!-- 需求端 -->
			<view class="information-box" v-if="Type==1">
				<view class="information" v-for="(item,index) in data1List" :key="index" @click="dataListBnt(item,index)">
					<view class="value">
						{{item.value}}
					</view>
					<view class="name">
						{{item.name}}
					</view>
				</view>
			</view>
			<!-- #ifndef APP-PLUS -->
			<view class="advertising" v-if="Type==0" :style="{'background-image': 'url('+ my_fx +')'}">
				<button open-type="share" class="bnt"></button>
				<!-- <image src="../../static/user/guidanceType1.png" mode=""></image> -->
				<view class="textBox">
					<view class="top">
						点击转发给好友
					</view>
					<view class="bon">
						查看需求次数 +{{resume_forward}}次
					</view>
				</view>
			</view>
			<!-- #endif -->
			<!-- #ifdef APP-PLUS -->
			<view class="advertising" v-if="Type==0" :style="{'background-image': 'url('+ my_fx +')'}" @click="shareBnt()">
				<!-- <image src="../../static/user/guidanceType1.png" mode=""></image> -->
				<view class="textBox">
					<view class="top">
						点击转发给好友
					</view>
					<view class="bon">
						查看需求次数 +{{resume_forward}}次
					</view>
				</view>
			</view>
			<!-- #endif -->
			<!-- 需求端 -->
			<view class="card-box" v-if="Type==1">
				<view class="card-item" v-for="(item,index) in card1List" :key="index" @click="jumpCard(item)">
					<view class="left-item">
						<view class="title">
							{{item.title}}
						</view>
						<view class="value">
							{{item.value}}
						</view>
					</view>
					<image :src="item.image" mode="heightFix"></image>
				</view>
			</view>
		</view>
		<!-- <view class="advertising2" v-if="Type==1" @click="vipBnt()">
			<image src="../../static/user/guidanceType2.png" mode=""></image>
		</view> -->
		<!-- 接单端 -->
		<view class="navigaList" v-if="Type==0">
			<view class="naviga-item" v-for="(item,index) in naviga0List" :key="index" @click="jump(item)">
				<image :src="item.image" mode=""></image>
				<view class="value">
					{{item.value}}
				</view>
			</view>
		</view>
		<!-- 需求端 -->
		<view class="navigaList" v-if="Type==1">
			<view class="naviga-item" v-for="(item,index) in naviga1List" :key="index" @click="jump(item)">
				<view class="item-box" v-if="index !=6 ">
					<image :src="item.image" mode=""></image>
					<view class="value">
						{{item.value}}
					</view>
				</view>
				<view class="item-box" v-if="index ==6 " @click="shareBnt()">
					<button open-type="share" class="bnt"></button>
					<image :src="item.image" mode=""></image>
					<view class="value">
						{{item.value}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<style scoped lang="scss">
	@import 'page.scss';
</style>
<script src="./page.js"></script>
